import { request } from '@ruifox-cms/utils'

// 查询历史版本
export function versionSelectPage(params) {
  return request({
    url: '/resource/version/selectPage',
    method: 'get',
    params
  })
}
// 批量删除
export function versionDeleteList(data) {
  return request({
    url: '/resource/version/deleteList',
    method: 'post',
    data
  })
}
// 回溯指定版本
export function versionRollbackVersion(data) {
  return request({
    url: '/resource/version/rollbackVersion',
    method: 'post',
    data
  })
}
// 比较指定版本
export function versionCompareVersion(data) {
  return request({
    url: '/resource/version/compareVersion',
    method: 'post',
    data
  })
}